package com.atguigu.petstore.common.execption;

import com.atguigu.petstore.common.result.ResultCodeEnum;

/**
 * @author lfy
 * @Description  //以后强制要求前端去登录页的，请抛出这个异常
 * @create 2023-09-23 14:37
 */
public class NeedLoginPetStoreException extends PetstoreException{


    public NeedLoginPetStoreException(String message, Integer code) {
        super(message, code);
    }

    public NeedLoginPetStoreException(ResultCodeEnum codeEnum) {
        super(codeEnum.getMessage(), codeEnum.getCode());
    }
}
